

package com.dog.basics.dao.wishwash;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dog.basics.bean.dto.admin.wishwash.AdminDogHxOrderItmeFromDto;
import com.dog.basics.bean.dto.admin.wishwash.AdminDogHxOrderItmeRoleDto;
import com.dog.basics.bean.model.wishwash.DogHxOrderItme;
import com.dog.basics.bean.vo.admin.wishwash.AdminDogHxOrderItmeVo;
import com.dog.basics.common.util.PageParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.math.BigDecimal;

/**
 * 订单子项信息
 *
 * @author cy code generator
 * @date 2021-07-09 17:40:27
 */
@Mapper
public interface DogHxOrderItmeMapper extends BaseMapper<DogHxOrderItme> {

    /**
     * @功能描述: 设备收入
     * @author He
     * @date 2021/7/15
     */
    BigDecimal getIncomeSumByDevId(@Param("devId") Long devId, @Param("startTime") Long startTime, @Param("endTime") Long endTime);

    /**
     * @功能描述: 统计使用率
     * @author He
     * @date 2021/7/16
     */
    Integer getUtilizationRateByDevId(@Param("devId") Long devId, @Param("startTime") Long startTime, @Param("endTime") Long endTime);

    /**
     * @功能描述: 设备-节点收入
     * @author He
     * @date 2021/7/15
     */
    BigDecimal getIncomeSumByDevNodeId(@Param("devNodeId") Long devNodeId, @Param("startTime") Long startTime, @Param("endTime") Long endTime);

    /**
     * @功能描述:  订单数据信息
     * @author He
     * @date 2021/7/17
     */
    IPage<AdminDogHxOrderItmeVo> getAdminPageList(PageParam page,@Param("obj") AdminDogHxOrderItmeFromDto obj);

    /**
     * @功能描述: 订单管理
     * @author He
     * @date 2021/7/19
     */
    IPage<AdminDogHxOrderItmeVo> getAdminPageRoleList(PageParam page,@Param("obj") AdminDogHxOrderItmeRoleDto obj);
}
